package com.killers.cold.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.killers.cold.orm.entity.FileInformation;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 文件下载服务
 * @author 罗天豪
 * @date 2019/9/9
 */
public interface IFileDownloadService extends IService<FileInformation> {
    /**
     * 用户下载文件
     * @param fileId 文件唯一标识
     * @param userId 用户唯一标识
     * @param httpServletResponse http响应
     * @return 文件信息
     * @throws IOException io异常
     */
    void getFile(String fileId, String userId, HttpServletResponse httpServletResponse) throws IOException;
}
